﻿using System;

namespace zwWitLink
{
    [System.Runtime.InteropServices.ComVisibleAttribute(true)] 
    class JsInterface
    {
        zwForm form;
        public JsInterface(zwForm form)
        {
            this.form = form;
        }
        public string ClearCard() {
            return form.ClearCard();
        }

        public string Reconncet() {
            return form.Reconncet();
        }

        public string MakeCard() {
            return form.MakeCard();
        }
        public void StartAutoRead() {
            form.StartAutoRead();
        }

        public void StopAutoRead() {
            form.StopAutoRead();
        }
        public string RestCard() {
            return form.RestCard();
        }

        public string MakeNoCupCard() {
            return form.MakeNoCupCard();
        }

        public string QueryCard(string cardno) {
            return form.QueryCard(cardno);
        }

        public string StateCard() {
            return form.StateCard();
        }
        public string GetError(string err) {
            return form.GetError(err);
        }

        public string ReadCard() {
            return form.ReadCard();
        }

        public string WriteAuth(string auth) {
            return form.WriteAuth(auth);
        }

        public string ReadAuth() {
            return form.ReadAuth();
        }

        public string ReadCupNo() {
            return form.ReadCupNo();
        }

        public string StaffCardSet(string value)
        {
            return form.StaffCardSet(value);
        }
        public string ReadNoNumber() {
            return form.ReadNoNumber();
        }
        public string EditNoCard(string num, string gender) {
            return form.EditNoCard(num,gender);
        }

    }
}
